package com.woniuxy.usercoachassemble.controller;


import com.woniuxy.usercoachassemble.service.NoticeService;
import org.example.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;



/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Lucas
 * @since 2020-07-12
 */
@RestController
@RequestMapping("notice")
public class NoticeController {
@Autowired
    private NoticeService noticeServiceImpl;
 @RequestMapping("getnotice")
    public Result getallNotice(){
        return Result.Success(noticeServiceImpl.query().eq("status",1).list());
    }
}

